package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Mobile   string `gorm:"type:varchar(11);not null;" json:"mobile"`
	Password string `gorm:"type:varchar(20);not null;" json:"password"`
}

type Art struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30);not null;" json:"title"`
	UserId  int    `gorm:"type:int(10);not null;" json:"user_id"`
	Context string `gorm:"type:varchar(20);not null;" json:"context"`
	Level   int    `gorm:"type:int;not null;default:1" json:"level"`
}
type Fock struct {
	gorm.Model
	UserId int `gorm:"type:int(10);not null;" json:"user_id"`
	FockId int `gorm:"type:int(10);not null;" json:"fock_id"`
}
